const PubSetting = {
  //发布版
  //http://47.108.25.65:8109
  //https://iqq.etkqq.gov.cn/api-farm-base
  Authority: 'https://iqq.etkqq.gov.cn/api-farm-base',
  HttpApiAddress: 'http://139.9.241.190:1716/standardapi',
  LocalhostApiAddress: 'http://192.168.81.4:8880',
  SelfHost: 'http://192.168.81.4',
  wsAddress:'ws://192.168.111.4:7000',
  workflow: 'http://192.168.2.3:2021',
  Ports: {
    BackendAdmin: ':888',
    EducationalManagement: ':8880',
    IntelligenceCourse: ':8881',
    researchManagement: ':8882',
    DocumentControl: ':8883',
    Workflow: ':8884',
    OA: ':8885',
    AssetsManagement: ':8886',
    BigScreen: ':8887',
    Dormitory:':8888',
    Finance:':8889',
    Analysis:':8890'
  },
  TokenTimeout: 30,
  HttpApiTimeout: 30000 //接口请求超期时间
}

const DevSetting = {
  //开发版
  Authority: 'https://iqq.etkqq.gov.cn/api-farm-base',
  HttpApiAddress: 'http://139.9.241.190:1716/standardapi',
  LocalhostApiAddress: 'http://localhost:8080',
  SelfHost: 'http://localhost',
  wsAddress:'ws://192.168.2.3:7000',
  workflow: 'http://192.168.2.3:2021',
  Ports: {
    BackendAdmin: ':8080',
    EducationalManagement: ':8080',
    IntelligenceCourse: ':8080',
    researchManagement: ':8080',
    DocumentControl: ':8080',
    Workflow: ':8080',
    OA: ':8080',
    AssetsManagement: ':8080',
    BigScreen: ':8080'
  },
  //Token过期时间
  TokenTimeout: 30,
  HttpApiTimeout: 30000 //接口请求超期时间
}

const Setting = process.env.NODE_ENV == 'development' ? DevSetting : PubSetting

export default Setting
